package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 租户信息对象 property_tenant
 * 
 * @author ruoyi
 * @date 2025-10-27
 */
public class PropertyTenant extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 租户ID */
    private Long tenantId;

    /** 租赁房屋 */
    @Excel(name = "租赁房屋")
    private Long houseId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idCard;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /** 租期开始 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "租期开始", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 租期结束 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "租期结束", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 业主是否同意 */
    @Excel(name = "业主是否同意")
    private Integer ownerAgree;

    /** 租赁合同路径 */
    @Excel(name = "租赁合同路径")
    private String contractUrl;

    public void setTenantId(Long tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }

    public void setHouseId(Long houseId) 
    {
        this.houseId = houseId;
    }

    public Long getHouseId() 
    {
        return houseId;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setIdCard(String idCard) 
    {
        this.idCard = idCard;
    }

    public String getIdCard() 
    {
        return idCard;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }

    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }

    public void setOwnerAgree(Integer ownerAgree) 
    {
        this.ownerAgree = ownerAgree;
    }

    public Integer getOwnerAgree() 
    {
        return ownerAgree;
    }

    public void setContractUrl(String contractUrl) 
    {
        this.contractUrl = contractUrl;
    }

    public String getContractUrl() 
    {
        return contractUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("tenantId", getTenantId())
            .append("houseId", getHouseId())
            .append("name", getName())
            .append("idCard", getIdCard())
            .append("phone", getPhone())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("ownerAgree", getOwnerAgree())
            .append("contractUrl", getContractUrl())
            .toString();
    }
}
